package com.smallkingson.ylib.view;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.ImageView;

import com.smallkingson.ylib.view.drawable.SelectorDrawable;


/**
 * Created by Administrator on 2016/9/21.
 */
public class YSelectorImageView extends ImageView{

    public YSelectorImageView(Context context) {
        this(context,null);
    }
    public YSelectorImageView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public void setImageDrawable(Drawable drawable) {
        super.setImageDrawable(new SelectorDrawable(drawable));
    }
}
